package top.lyc829.zzl_android.ui.travel.edit_travel;

import android.view.View;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.google.gson.Gson;
import com.jeremyliao.liveeventbus.LiveEventBus;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import okhttp3.Response;
import top.lyc829.zzl_android.logic.bean.ActivityBean;
import top.lyc829.zzl_android.logic.bean.LiveEventMsg;
import top.lyc829.zzl_android.logic.bean.ResultBean;
import top.lyc829.zzl_android.logic.bean.TravelItemBean;
import top.lyc829.zzl_android.logic.bean.UserInfoBean;
import top.lyc829.zzl_android.logic.network.Network;
import top.lyc829.zzl_android.logic.util.HttpUtil;
import top.lyc829.zzl_android.logic.util.RichUtils;
import top.lyc829.zzl_android.logic.util.Utils;
import top.lyc829.zzl_android.logic.util.gson.JsonUtilNew;

/**
 * @Author lyc
 * @create 2021-04-02 17:04
 */
public class EditTravelViewModel extends ViewModel {

    private MutableLiveData<Integer> teamIdLiveData;
    private MutableLiveData<List<ActivityBean>> activitiesLiveData;
    private MutableLiveData<String> travelTitleLiveData;

    private MutableLiveData<List<TravelItemBean>> itemTravelLiveData;


    public MutableLiveData<List<ActivityBean>> getActivitiesLiveData() {
        if (activitiesLiveData == null) {
            activitiesLiveData = new MutableLiveData<>();
        }
        return activitiesLiveData;
    }

    public MutableLiveData<String> getTravelTitleLiveData() {
        if (travelTitleLiveData == null) {
            travelTitleLiveData = new MutableLiveData<>();
        }
        return travelTitleLiveData;
    }



    public MutableLiveData<Integer> getTeamIdLiveData() {
        if (teamIdLiveData == null) {
            teamIdLiveData = new MutableLiveData<>();
        }
        return teamIdLiveData;
    }

    public MutableLiveData<List<TravelItemBean>> getItemTravelLiveData() {
        if (itemTravelLiveData == null) {
            itemTravelLiveData = new MutableLiveData<>();
        }
        return itemTravelLiveData;
    }

    public void uploadPhotos(int userId) {

    }
}
